﻿/// <reference path="../_references.js" />
(function () {
    var app = angular.module('TfsApp', ['ngRoute']);

    app.config(['$routeProvider', function ($routeProvider) {
        $routeProvider
            .when('/', {
                templateUrl: 'views/pages/dashboard.html'                
            })         
            .when('/tasks', {
                templateUrl: 'views/pages/tasks.html',
                controller: 'TasksController',
                controllerAs: 'taskCtrl'
            })
            .when('/edit-task/:taskId', {
                templateUrl: 'views/pages/edit-task.html',
                controller: 'EditTaskController',
                controllerAs: 'editTaskCtrl'
            });
    }]);
})();